/* normalize.css v3.0.0 | MIT License | git.io/normalize */
html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

p {
    font-size: 1.6rem;
    margin: 20rem;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden],
template {
    display: none;
}

a {
    background: transparent;
}

a:active,
a:hover {
    outline: 0;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b,
strong {
    font-weight: bold;
}

dfn {
    font-style: italic;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

mark {
    background: #ff0;
    color: #000;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 1em 40px;
}

hr {
    box-sizing: content-box;
    height: 0;
}

pre {
    overflow: auto;
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"] {
    -webkit-appearance: textfield;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
}

optgroup {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    padding: 0;
}

.btn {
    display: inline-block;
    background: #f5433b;
    color: #fff;
    font-size: 1.6rem;
    padding: 0 2rem;
    height: 4rem;
    line-height: 4rem;
    text-align: center;
}

.btn-block {
    display: block;
    padding: 0;
    margin-top: 1rem;
}

.btn-blue {
    background: #00a6d2;
}

.hidden {
    display: none !important;
}

html,
body {
    height: 100%;
}

html {
    background: #164554 url("../images/bg/main.png") no-repeat center top;
    background-size: cover;
}

body {
    padding: 0;
    margin: 0;
    width: 100%;
    color: #fff;
    font-family: Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    color: #333;
}

.pt-perspective {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-perspective: 1200px;
    -ms-perspective: 1200px;
    perspective: 1200px;
    -webkit-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.pt-page {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

.pt-page-current {
    visibility: visible;
}

.title {
    text-align: center;
    font-size: 4rem;
    margin: 5rem 0;
}

.function-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 0;
    width: 30.1rem;
    margin: 0 auto;
}

.function-list li {
    display: inline-block;
    width: 7.9rem;
    height: 7.9rem;
    background: url("../images/bg/btn_normal.png") no-repeat;
    background-size: 7.9rem;
    margin: 0.8rem 0.9rem;
}

.function-list li.active {
    background-image: url("../images/bg/btn_press.png");
}

.fun-1 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_1.png") no-repeat;
    background-size: 7.9rem;
}

.fun-2 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_2.png") no-repeat;
    background-size: 7.9rem;
}

.fun-3 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_3.png") no-repeat;
    background-size: 7.9rem;
}

.fun-4 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_4.png") no-repeat;
    background-size: 7.9rem;
}

.fun-5 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_5.png") no-repeat;
    background-size: 7.9rem;
}

.fun-6 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_6.png") no-repeat;
    background-size: 7.9rem;
}

.fun-7 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_7.png") no-repeat;
    background-size: 7.9rem;
}

.fun-8 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_8.png") no-repeat;
    background-size: 7.9rem;
}

.fun-9 {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/bg/btn_9.png") no-repeat;
    background-size: 7.9rem;
}

.operations {
    margin: 4rem auto 1rem;
    width: 29.1rem;
}

.operations a {
    display: inline-block;
    padding: 1rem 2rem;
    color: #fff;
    font-size: 1.5rem;
}

.operations a.active {
    background-color: #1470a1;
}

#linkDebug {
    float: right;
}

#homePage .container {
    height: 100%;
    overflow: auto;
}

.device-list {
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 5.6rem;
    width: 100%;
    overflow-y: auto;
}

.device-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding: 0 2%;
}

.device-list li {
    border-bottom: 1px solid #51606a;
    font-size: 1.8rem;
    padding-right: 1.5rem;
}

.device-list li.active {
    background-color: #1470a1;
}

.device-list a {
    display: block;
    padding: 1.5rem 0 1.5rem 1.5rem;
    color: #fff;
    background: url("../images/bg/icon_arrow.png") no-repeat right 1.5rem;
    background-size: 1.05rem 2rem;
}

.actions {
    position: absolute;
    left: 2%;
    bottom: 1rem;
    width: 96%;
}

.console {
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 4.7rem;
    width: 100%;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.5rem;
}

.console p {
    margin: 0;
}

.console .container {
    padding: 0 1.5rem;
}

.form {
    position: absolute;
    left: 2%;
    bottom: 0.5rem;
    width: 100%;
}

.form .query {
    border: none;
    outline: none;
    width: 70%;
    background: #fff;
    font-size: 1.5rem;
    padding: 0.5rem 3%;
    height: 2.6rem;
    line-height: 2.6rem;
    color: #333;
    vertical-align: middle;
}

.form .btn-send {
    border: none;
    vertical-align: middle;
    padding: 0;
    width: 20%;
    text-align: center;
    background: #f5433b;
    outline: none;
    font-size: 1.6rem;
    height: 3.6rem;
    line-height: 3.6rem;
    color: #333;
    color: #fff;
}

.loading {
    text-align: center;
    color: #fff;
}

.loading p {
    font-size: 1.6rem;
}

.icon-loading {
    position: relative;
    margin: 6rem auto 2rem;
    width: 4rem;
    height: 4rem;
}

.icon-loading .dot {
    width: 0.4rem;
    height: 4rem;
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -0.2rem;
}

.icon-loading .dot::before,
.icon-loading .dot::after {
    position: absolute;
    left: 0;
    content: '';
    background: #fff;
    width: 0.4rem;
    height: 1rem;
    border-radius: 0.2rem;
    -webkit-animation: blink 0.8s infinite ease-in-out;
    animation: blink 0.8s infinite ease-in-out;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.icon-loading .dot::before {
    top: 0;
}

.icon-loading .dot::after {
    bottom: 0;
}

.icon-loading .dot1::before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

.icon-loading .dot1::after {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.icon-loading .dot2 {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.icon-loading .dot2::before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}

.icon-loading .dot2::after {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}

.icon-loading .dot3 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.icon-loading .dot3::before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}

.icon-loading .dot3::after {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

.icon-loading .dot4 {
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}

.icon-loading .dot4::before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}

.icon-loading .dot4::after {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.tips {
    text-align: center;
    font-size: 1.6rem;
    margin: 6rem auto 2rem;
}

.tips-error .icon {
    display: inline-block;
    width: 6rem;
    height: 6rem;
    background: #d92f30;
    position: relative;
    border-radius: 3rem;
}

.tips-error .icon::before,
.tips-error .icon::after {
    position: absolute;
    left: 50%;
    margin-left: -0.3rem;
    content: "";
    background: #fff;
}

.tips-error .icon::before {
    width: 0.6rem;
    height: 2.5rem;
    top: 1rem;
}

.tips-error .icon::after {
    width: 0.6rem;
    height: 0.6rem;
    top: 4.2rem;
}

.pt-page-moveToLeft {
    -webkit-animation: moveToLeft 0.6s ease both;
    animation: moveToLeft 0.6s ease both;
}

.pt-page-moveFromLeft {
    -webkit-animation: moveFromLeft 0.6s ease both;
    animation: moveFromLeft 0.6s ease both;
}

.pt-page-moveToRight {
    -webkit-animation: moveToRight 0.6s ease both;
    animation: moveToRight 0.6s ease both;
}

.pt-page-moveFromRight {
    -webkit-animation: moveFromRight 0.6s ease both;
    animation: moveFromRight 0.6s ease both;
}

@media only screen and (min-width: 320px) {
    html {
        font-size: 10px;
    }
}

@media only screen and (min-width: 480px) {
    html {
        font-size: 15px;
    }
}

@media only screen and (min-width: 560px) {
    html {
        font-size: 17.5px;
    }
}

@media only screen and (min-width: 640px) {
    html {
        font-size: 20px;
    }
}

@media only screen and (min-width: 720px) {
    html {
        font-size: 22.5px;
    }
}

@media only screen and (min-width: 800px) {
    html {
        font-size: 25px;
    }
}

@media only screen and (min-width: 960px) {
    html {
        font-size: 30px;
    }
}

@media only screen and (min-width: 1120px) {
    html {
        font-size: 35px;
    }
}

@media only screen and (min-width: 1280px) {
    html {
        font-size: 40px;
    }
}

@-webkit-keyframes blink {
    0%, 100% {
        opacity: 1;
        -ms-filter: none;
        -webkit-filter: none;
        filter: none;
    }
    50% {
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        -ms-filter: none;
        -webkit-filter: none;
        filter: none;
    }
    50% {
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0);
    }
}

@-webkit-keyframes moveToLeft {
    to {
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

@keyframes moveToLeft {
    to {
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

@-webkit-keyframes moveFromLeft {
    from {
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

@keyframes moveFromLeft {
    from {
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

@-webkit-keyframes moveToRight {
    to {
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
    }
}

@keyframes moveToRight {
    to {
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
    }
}

@-webkit-keyframes moveFromRight {
    from {
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
    }
}

@keyframes moveFromRight {
    from {
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
    }
}
